import lunar
import datetime
import pandas as pd

df = pd.read_csv('caipiao5.csv')
# i = 0
# df['date'] = pd.to_datetime(df['date'])
# df['year'] = 0
# df['month'] = 0
# df['day'] = 0
# df['星期'] = 0
#
# for t in df['date']:
#     df.loc[i, 'year'] = lunar.Lunar(t).year8Char
#     df.loc[i, 'month'] = lunar.Lunar(t).month8Char
#     df.loc[i, 'day'] = lunar.Lunar(t).day8Char
#     df.loc[i, '星期'] = lunar.Lunar(t).weekDayCn
#     i += 1
#
#
# df.to_csv('彩票plus.csv', index=False)
# exit()
